﻿using System.Collections.ObjectModel;
using Coniometer.Service;
using Coniometer.Utils;
using Prism.Mvvm;

namespace Coniometer.ViewModels
{
    public class NetworkConfigPageViewModel : BindableBase
    {
        private ObservableCollection<string> _wifiCollection = new ObservableCollection<string>();

        public ObservableCollection<string> WifiCollection
        {
            get => _wifiCollection;
            set
            {
                _wifiCollection = value;
                RaisePropertyChanged();
            }
        }

        public NetworkConfigPageViewModel(IAppDataService dataService)
        {
            WifiCollection = dataService.GetWifiList().ToObservableCollection();
        }
    }
}